<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>TIAN.26</title>
<link href="<?php echo base_url(); ?>admin/css/fonts.css"
    rel="stylesheet" type="text/css" />
<link href="<?php echo base_url(); ?>admin/css/style.css"
	rel="stylesheet" type="text/css" />
<link href="<?php echo base_url(); ?>admin/css/isotope.css"
	rel="stylesheet" type="text/css" />
<link href="<?php echo base_url(); ?>admin/css/mqueries.css"
	rel="stylesheet" type="text/css" media="screen" />
<link href="<?php echo base_url(); ?>admin/css/gallery.css"
	rel="stylesheet" type="text/css" />
<link href="<?php echo base_url(); ?>assets/css/bootstrap.min.css"
	rel="stylesheet" type="text/css" />
<script src="<?php echo base_url(); ?>assets/js/jquery.min.js"></script>
<script src="<?php echo base_url(); ?>assets/js/bootstrap.min.js"></script>
<script src="<?php echo base_url(); ?>admin/js/jquery.modernizr.min.js"></script>
</head>
<body>
	<div id="page">
		<header id="header" class="wrapper">
			<div class="header_top clearfix">
				<nav id="nav" class="right_float">
					<ul>
						<li><a class="loadcontent" rel="主页"></a></li>
					</ul>
				</nav>
			</div>
		</header>
		<section id="main">
			<div class="main_inner wrapper clearfix">
				<ul class="filter">
					<li><a class="active" href="" data-option-value="*">一些文章 <strong><small>
									<?php echo $this->db->query('select * from article where a_show="已审"')->num_rows();?>
							</small></strong>
					</a></li>
					<li><a href="" data-option-value=".print">关于家人 <strong><small>
									<?php echo $this->db->get_where('article',array('a_state'=>'关于家人','a_show'=>'已审'))->num_rows();?>
							</small></strong>
					</a></li>
					<li><a href="" data-option-value=".work">关于工作 <strong><small>
									<?php echo $this->db->get_where('article',array('a_state'=>'关于工作','a_show'=>'已审'))->num_rows();?>
							</small></strong>
					</a></li>
					<li><a href="" data-option-value=".post">关于朋友 <strong><small>
									<?php echo $this->db->get_where('article',array('a_state'=>'关于朋友','a_show'=>'已审'))->num_rows();?>
							</small></strong>
					</a></li>
					<li><a href="" data-option-value=".motion">思考感悟 <strong><small>
									<?php echo $this->db->get_where('article',array('a_state'=>'思考感悟','a_show'=>'已审'))->num_rows();?>
							</small></strong>
					</a></li>
				</ul>
				<hr>
				<div id="masonry" class="entries clearfix">
					<?php 
					 foreach ($news as $row ):			
                    if($row->a_state=='关于家人'){
					?>
					<div class="masonry_item entry print sliphover-overlay">
						<div class="img_holder ">
							<a href="<?php echo site_url('admin/user/short/'.$row->a_id.'/'.$row->a_num); ?>"
								rel="Diam nonumy eirmod" class="loadcontent"><img
								src="<?php echo base_url('uploads/'.$row->img); ?>"
								alt="<?php echo $row->a_title?>" /></a>
						</div>
						<div class="entry-headline">
							<div class="entry-title">
								<h5>
								<?php echo $row->username; ?><br>
									<a
										href="<?php echo site_url('admin/user/short/'.$row->a_id.'/'.$row->a_num); ?>"
										rel="Diam nonumy eirmod" class="loadcontent"> <?php echo $row->a_title;?>
									</a>
								</h5>
							</div>
							<div class="entry-date">
								<?php echo $row->a_crtime; ?>
							</div>
							<input value="<?php echo $row->a_id?>" type="hidden">
						</div>
						<div class="entry-info">
						<div class="entry-meta clearfix">
                            <div class="meta_views right_float"><span><?php echo $row->a_num?></span></div>
                            <div class="meta_likes right_float"><a  class="loadcontent"></a><span>12</span></div>
                            <div class="meta_comments right_float"><a href="<?php echo site_url('admin/user/short/'.$row->a_id.'/'.$row->a_num); ?>" rel="Diam nonumy eirmod" class="loadcontent">
                           <span class="ds-thread-count" data-thread-key="<?php echo $row->a_id?>"></span></a></div>
                        </div>
					</div>
					</div>
					<?php 
					}
                    if($row->a_state=='关于工作'){
					?>
					<div class="masonry_item entry work">
						<div class="img_holder">
							<a href="<?php echo site_url('admin/user/short/'.$row->a_id.'/'.$row->a_num); ?>"
								rel="Diam nonumy eirmod" class="loadcontent" ><img
								src="<?php echo base_url('uploads/'.$row->img); ?>"
								alt="<?php echo $row->a_title?>" /></a>
						</div>
						<div class="entry-headline">
							<div class="entry-title">
								<h5>
								<?php echo $row->username; ?><br>
									<a
										href="<?php echo site_url('admin/user/short/'.$row->a_id.'/'.$row->a_num); ?>"
										rel="Diam nonumy eirmod" class="loadcontent"> <?php echo $row->a_title ;?>
									</a>
								</h5>
							</div>
							<div class="entry-date">
								<?php echo $row->a_crtime; ?>
							</div>
						</div>
						<div class="entry-info">
						<div class="entry-meta clearfix">
                            <div class="meta_views right_float"><span><?php echo $row->a_num?></span></div>
                            <div class="meta_likes right_float"><a class="loadcontent"></a><span>12</span></div>
                            <div class="meta_comments right_float"><a href="<?php echo site_url('admin/user/short/'.$row->a_id.'/'.$row->a_num); ?>" rel="Diam nonumy eirmod" class="loadcontent">
                           <span class="ds-thread-count" data-thread-key="<?php echo $row->a_id?>"></span>
                            </a></div>
                        </div>
					</div>
					</div>
					<?php 
					}
                    if($row->a_state=='关于朋友'){
					?>
					<div class="masonry_item entry post">
						<div class="img_holder">
							<a href="<?php echo site_url('admin/user/short/'.$row->a_id.'/'.$row->a_num); ?>"
								rel="Diam nonumy eirmod" class="loadcontent"><img
								src="<?php echo base_url('uploads/'.$row->img); ?>"
								alt="<?php echo $row->a_title?>" /></a>
						</div>
						<div class="entry-headline">
							<div class="entry-title">
								<h5>
						<?php echo $row->username; ?><br>
									<a
										href="<?php echo site_url('admin/user/short/'.$row->a_id.'/'.$row->a_num); ?>"
										rel="Diam nonumy eirmod" class="loadcontent"> <?php echo $row->a_title ;?>
									</a>
								</h5>
							</div>
							<div class="entry-date">
								<?php echo $row->a_crtime; ?>
							</div>
						</div>
						<div class="entry-info">
						<div class="entry-meta clearfix">
                            <div class="meta_views right_float"><span><?php echo $row->a_num?></span></div>
                            <div class="meta_likes right_float"><a class="loadcontent"></a><span>12</span></div>
                            <div class="meta_comments right_float"><a href="<?php echo site_url('admin/user/short/'.$row->a_id.'/'.$row->a_num); ?>"rel="Diam nonumy eirmod" class="loadcontent">
                            <span class="ds-thread-count" data-thread-key="<?php echo $row->a_id?>"></span>
                            </a></div>
                        </div>
					</div>
					</div>
					<?php   }if($row->a_state=='思考感悟'){?>
					<div class="masonry_item entry motion">
						<div class="img_holder">
							<a href="<?php echo site_url('admin/user/short/'.$row->a_id.'/'.$row->a_num); ?>"
								rel="Diam nonumy eirmod" class="loadcontent"> <img
								src="<?php echo base_url('uploads/'.$row->img); ?>"
								alt="<?php echo $row->a_title?>" /></a>
						</div>
						<div class="entry-headline">
							<div class="entry-title">
								<h5>
							<?php echo $row->username; ?><br>
									<a
										href="<?php echo site_url('admin/user/short/'.$row->a_id.'/'.$row->a_num); ?>"
										rel="Diam nonumy eirmod" class="loadcontent"> <?php echo $row->a_title ;?>
									</a>
								</h5>
							</div>
							<div class="entry-date">
								<?php echo $row->a_crtime; ?>
							</div>
						</div>
						<div class="entry-info">
						<div class="entry-meta clearfix">
                            <div class="meta_views right_float"><span><?php echo $row->a_num?></span></div>
                            <div class="meta_likes right_float"><a  class="loadcontent"></a><span>12</span></div>
                            <div class="meta_comments right_float"><a href="<?php echo site_url('admin/user/short/'.$row->a_id.'/'.$row->a_num); ?>"rel="Diam nonumy eirmod" class="loadcontent">
                           <span class="ds-thread-count" data-thread-key="<?php echo $row->a_id?>"></span>
                            </a></div>
                           
                        </div>
					</div>
					</div>
					<?php  }endforeach;?>
				</div>
			</div>
		</section>
			<span id="allnum"></span>
		<footer id="footer">
			<div class="footer_inner wrapper clearfix">
				<div class="left_float">Copyright © 2015 by YETIAN. All rights
					reserved</div>
				<div class="right_float">
					Created by <a href="<?php echo site_url('usercon/contact')?>">YE
						TIAN</a>
				</div>
			</div>
		</footer>
	</div>
	<script src="<?php echo base_url(); ?>admin/js/jquery-1.7.1.min.js"></script>
	<script src="<?php echo base_url(); ?>admin/js/jquery.isotope.min.js"></script>
	<script src='<?php echo base_url(); ?>admin/js/jquery.easing.1.3.js'></script>
	<script src='<?php echo base_url(); ?>admin/js/jquery.easing.compatibility.js'></script>
	<script src="<?php echo base_url(); ?>admin/js/script.js"></script>
</body>
<script type="text/javascript">
var duoshuoQuery = {short_name:"tian26"};
	(function() {
		var ds = document.createElement('script');
		ds.type = 'text/javascript';ds.async = true;
		ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
		ds.charset = 'UTF-8';
		(document.getElementsByTagName('head')[0] 
		 || document.getElementsByTagName('body')[0]).appendChild(ds);
	})();
</script>
</html>

